<?php
include ("../main/inc/global.inc.php");
$date = date("Y-m-d H:i:s");

if (isset($_POST['comment']))
{
    $result = Database::sendComment($_POST["fileId"],$_POST["uploadId"],html_encode(strip_tags($_POST["comment"])),$date);
}

if (isset($_POST["fileId"]))
{
    $value["id"] = $_POST["fileId"];
    include 'LoadCommentList.php';
}


?>
